#include <iostream>
#include <stdio.h>
using namespace std;


int main()
{
    char st[4] = {'a','b','c','c'};
    int flag = 0,N = 4;
    for(int i=0;i<=N;i++)
    {
        for(int j = i+1;j<=N;j++)
        {
            if (st[i] == st[j])
            {
                cout<<1;
                flag = 1;
                break;
            }
        }
        if (flag ==1)
            break;
    }
    if (flag == 0)
        cout<<0;

    system("pause");
    return 0;
    
}
